package com.zoe.app;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Zoe.Zhang
 * @date 2022/01/18
 * @description
 */
@Component
public class Test1 {
    public static String HELLO;

    public static String WORLD;

    @Value("${spring.test.hello}")// 值为hello
    public void setHELLO(String hello) {
        HELLO = hello;
    }

    @Value("${spring.test.world}")// 值为world
    public void setWORLD(String world) {
        WORLD = world;
    }

    public String getHELLO() {
        return HELLO;
    }

    public String getWORLD() {
        return WORLD;
    }
}
